package com.ruoyi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;
    private Boolean f;
    private String message;
    private Object data;
    public static Result succeed(Object data){
        return new Result(200,true,"成功",data);
    }
    public static Result err(Integer code,String message){
        return new Result(code,false,message,"");
    }
}
